package com.cdl.utils;

import com.cdl.utils.bean.ColumnInfo;
import com.cdl.utils.bean.IndexInfo;

import java.util.List;

/**
 * @author chendongliang 2021/7/18 10:22
 * @description
 */
public interface TableInfoUtil {

    /***
     * @author: chendongliang
     * @date: 2021/7/18 10:24
     * @description: 判断表是否存在
     * @param tableName
     * @return: boolean
     */
    boolean isExistTable(String tableName);


    /***
     * @author: chendongliang
     * @date: 2021/7/18 10:25
     * @description: 根据表名获取字段信息
     * @param tableName
     * @return: java.util.List<com.cdl.utils.bean.ColumnInfo>
     */
    List<ColumnInfo> getTableColumns(String tableName);


    /***
     * @author: chendongliang
     * @date: 2021/7/18 10:26
     * @description: 获取索引信息
     * @param tableName
     * @return: java.util.List<com.cdl.utils.bean.IndexInfo>
     */
    List<IndexInfo> getTableIndexs(String tableName);





}
